/* color palette from <https://github.com/vuejs/theme> */
:root {
  --vt-c-white: #fff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;
  --vt-c-black: #181818;
  --vt-c-black-soft: #222;
  --vt-c-black-mute: #282828;
  --vt-c-indigo: #2c3e50;
  --vt-c-divider-light-1: rgba(60, 60, 60, 29%);
  --vt-c-divider-light-2: rgba(60, 60, 60, 12%);
  --vt-c-divider-dark-1: rgba(84, 84, 84, 65%);
  --vt-c-divider-dark-2: rgba(84, 84, 84, 48%);
  --vt-c-text-light-1: var(--vt-c-indigo);
  --vt-c-text-light-2: rgba(60, 60, 60, 66%);
  --vt-c-text-dark-1: var(--vt-c-white);
  --vt-c-text-dark-2: rgba(235, 235, 235, 64%);
}

/* semantic color variables for this project */
:root {
  --color-background: var(--vt-c-white);
  --color-background-soft: var(--vt-c-white-soft);
  --color-background-mute: var(--vt-c-white-mute);
  --color-border: var(--vt-c-divider-light-2);
  --color-border-hover: var(--vt-c-divider-light-1);
  --color-heading: var(--vt-c-text-light-1);
  --color-text: var(--vt-c-text-light-1);
  --section-gap: 160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);
    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);
    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  transition:
    color 0.5s,
    background-color 0.5s;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  outline: none;
  box-shadow: none !important;
}

/* button:hover {
  background: var(--color--primary);
} */

.ant-form .ant-input {
  width: 183px;
}

.ant-form .ant-select.ant-select-in-form-item {
  width: 183px;
}

.ant-message {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 1010;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  pointer-events: none;
  transform: translateX(-50%);
}

.ant-message-notice {
  padding: 8px;
  text-align: center;
}

.ant-message-notice .ant-message-notice-content {
  display: inline-block;
  padding: 9px 12px;
  color: var(--color-text-base);
  pointer-events: all;
  background: var(--color--bg-base);
  border-radius: 2px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 8%),
    0 3px 6px -4px rgba(0, 0, 0, 12%),
    0 9px 28px 8px rgba(0, 0, 0, 5%);
}

.ant-message-notice .ant-message-info .anticon,
.ant-message-notice .ant-message-loading .anticon {
  color: var(--color--primary);
}

.ant-message-notice .ant-message-success .anticon {
  color: #52c41a;
}

.ant-message-notice .ant-message-error .anticon {
  color: var(--color--danger);
}

.ant-message-notice .ant-message-warning .anticon {
  color: #faad14;
}

.ant-message-notice .anticon {
  margin-inline-end: 8px;
  font-size: 16px;
  vertical-align: text-bottom;
}

.ant-select-item {
  background-color: var(--color--bg-base) !important;
}

.ant-select-item:hover,
.ant-select-item-option-selected {
  background-color: var(--color--bg-second) !important;
}

.ant-notification {
  position: fixed;
  z-index: 1050;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  margin-inline-end: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
}

.ant-notification-notice {
  position: relative;
  width: 384px;
  max-width: calc(100vw - 48px);
  padding: 20px 24px;
  margin-bottom: 16px;
  margin-left: auto;
  overflow: hidden;
  line-height: 1.5714285714285714;
  word-wrap: break-word;
  border-radius: 2px;
}

.ant-notification-notice .ant-notification-notice-icon-success.anticon {
  color: #52c41a;
}

.ant-notification-notice .ant-notification-notice-icon-info.anticon {
  color: var(--color--primary);
}

.ant-notification-notice .ant-notification-notice-icon-warning.anticon {
  color: #faad14;
}

.ant-notification-notice .ant-notification-notice-icon-error.anticon {
  color: var(--color--danger);
}

.ant-notification-notice .ant-notification-notice-icon {
  position: absolute;
  font-size: 24px;
  line-height: 0;
}

.ant-notification-notice .ant-notification-notice-with-icon .ant-notification-notice-message {
  margin-bottom: 8px;
  margin-left: 36px;
  font-size: 16px;
}

.ant-notification-notice.ant-notification-notice-closable .ant-notification-notice-message {
  padding-right: 24px;
}

.ant-notification-notice .ant-notification-notice-message {
  line-height: 1.5;
}

.ant-notification-notice .ant-notification-notice-with-icon .ant-notification-notice-description {
  margin-left: 36px;
  font-size: 14px;
}

.ant-notification-notice .ant-notification-notice-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  outline: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

/* table */
html[theme='light'] {
  .ant-table-wrapper .ant-table-thead > tr > th,
  .ant-table-wrapper .ant-table-thead > tr > td {
    background: #f2f3f5 !important;
  }
}

.modelForm {
  .ant-tag.ant-tag-has-color .anticon-close {
    color: rgba(0, 0, 0, 45%) !important;
  }
}
